package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MProjectToInventoryExecExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MProjectToInventoryExecExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPieIdIsNull() {
            addCriterion("pie_id is null");
            return (Criteria) this;
        }

        public Criteria andPieIdIsNotNull() {
            addCriterion("pie_id is not null");
            return (Criteria) this;
        }

        public Criteria andPieIdEqualTo(Integer value) {
            addCriterion("pie_id =", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdNotEqualTo(Integer value) {
            addCriterion("pie_id <>", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdGreaterThan(Integer value) {
            addCriterion("pie_id >", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pie_id >=", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdLessThan(Integer value) {
            addCriterion("pie_id <", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdLessThanOrEqualTo(Integer value) {
            addCriterion("pie_id <=", value, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdIn(List<Integer> values) {
            addCriterion("pie_id in", values, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdNotIn(List<Integer> values) {
            addCriterion("pie_id not in", values, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdBetween(Integer value1, Integer value2) {
            addCriterion("pie_id between", value1, value2, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pie_id not between", value1, value2, "pieId");
            return (Criteria) this;
        }

        public Criteria andPieDateIsNull() {
            addCriterion("pie_date is null");
            return (Criteria) this;
        }

        public Criteria andPieDateIsNotNull() {
            addCriterion("pie_date is not null");
            return (Criteria) this;
        }

        public Criteria andPieDateEqualTo(Date value) {
            addCriterion("pie_date =", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateNotEqualTo(Date value) {
            addCriterion("pie_date <>", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateGreaterThan(Date value) {
            addCriterion("pie_date >", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateGreaterThanOrEqualTo(Date value) {
            addCriterion("pie_date >=", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateLessThan(Date value) {
            addCriterion("pie_date <", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateLessThanOrEqualTo(Date value) {
            addCriterion("pie_date <=", value, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateIn(List<Date> values) {
            addCriterion("pie_date in", values, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateNotIn(List<Date> values) {
            addCriterion("pie_date not in", values, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateBetween(Date value1, Date value2) {
            addCriterion("pie_date between", value1, value2, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieDateNotBetween(Date value1, Date value2) {
            addCriterion("pie_date not between", value1, value2, "pieDate");
            return (Criteria) this;
        }

        public Criteria andPieExecutorIsNull() {
            addCriterion("pie_executor is null");
            return (Criteria) this;
        }

        public Criteria andPieExecutorIsNotNull() {
            addCriterion("pie_executor is not null");
            return (Criteria) this;
        }

        public Criteria andPieExecutorEqualTo(String value) {
            addCriterion("pie_executor =", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorNotEqualTo(String value) {
            addCriterion("pie_executor <>", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorGreaterThan(String value) {
            addCriterion("pie_executor >", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorGreaterThanOrEqualTo(String value) {
            addCriterion("pie_executor >=", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorLessThan(String value) {
            addCriterion("pie_executor <", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorLessThanOrEqualTo(String value) {
            addCriterion("pie_executor <=", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorLike(String value) {
            addCriterion("pie_executor like", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorNotLike(String value) {
            addCriterion("pie_executor not like", value, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorIn(List<String> values) {
            addCriterion("pie_executor in", values, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorNotIn(List<String> values) {
            addCriterion("pie_executor not in", values, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorBetween(String value1, String value2) {
            addCriterion("pie_executor between", value1, value2, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieExecutorNotBetween(String value1, String value2) {
            addCriterion("pie_executor not between", value1, value2, "pieExecutor");
            return (Criteria) this;
        }

        public Criteria andPieNumIsNull() {
            addCriterion("pie_num is null");
            return (Criteria) this;
        }

        public Criteria andPieNumIsNotNull() {
            addCriterion("pie_num is not null");
            return (Criteria) this;
        }

        public Criteria andPieNumEqualTo(Double value) {
            addCriterion("pie_num =", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumNotEqualTo(Double value) {
            addCriterion("pie_num <>", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumGreaterThan(Double value) {
            addCriterion("pie_num >", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumGreaterThanOrEqualTo(Double value) {
            addCriterion("pie_num >=", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumLessThan(Double value) {
            addCriterion("pie_num <", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumLessThanOrEqualTo(Double value) {
            addCriterion("pie_num <=", value, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumIn(List<Double> values) {
            addCriterion("pie_num in", values, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumNotIn(List<Double> values) {
            addCriterion("pie_num not in", values, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumBetween(Double value1, Double value2) {
            addCriterion("pie_num between", value1, value2, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieNumNotBetween(Double value1, Double value2) {
            addCriterion("pie_num not between", value1, value2, "pieNum");
            return (Criteria) this;
        }

        public Criteria andPieWeightIsNull() {
            addCriterion("pie_weight is null");
            return (Criteria) this;
        }

        public Criteria andPieWeightIsNotNull() {
            addCriterion("pie_weight is not null");
            return (Criteria) this;
        }

        public Criteria andPieWeightEqualTo(Double value) {
            addCriterion("pie_weight =", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightNotEqualTo(Double value) {
            addCriterion("pie_weight <>", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightGreaterThan(Double value) {
            addCriterion("pie_weight >", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightGreaterThanOrEqualTo(Double value) {
            addCriterion("pie_weight >=", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightLessThan(Double value) {
            addCriterion("pie_weight <", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightLessThanOrEqualTo(Double value) {
            addCriterion("pie_weight <=", value, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightIn(List<Double> values) {
            addCriterion("pie_weight in", values, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightNotIn(List<Double> values) {
            addCriterion("pie_weight not in", values, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightBetween(Double value1, Double value2) {
            addCriterion("pie_weight between", value1, value2, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieWeightNotBetween(Double value1, Double value2) {
            addCriterion("pie_weight not between", value1, value2, "pieWeight");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdIsNull() {
            addCriterion("pie_after_ity_id is null");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdIsNotNull() {
            addCriterion("pie_after_ity_id is not null");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdEqualTo(Integer value) {
            addCriterion("pie_after_ity_id =", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdNotEqualTo(Integer value) {
            addCriterion("pie_after_ity_id <>", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdGreaterThan(Integer value) {
            addCriterion("pie_after_ity_id >", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pie_after_ity_id >=", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdLessThan(Integer value) {
            addCriterion("pie_after_ity_id <", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdLessThanOrEqualTo(Integer value) {
            addCriterion("pie_after_ity_id <=", value, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdIn(List<Integer> values) {
            addCriterion("pie_after_ity_id in", values, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdNotIn(List<Integer> values) {
            addCriterion("pie_after_ity_id not in", values, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdBetween(Integer value1, Integer value2) {
            addCriterion("pie_after_ity_id between", value1, value2, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieAfterItyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pie_after_ity_id not between", value1, value2, "pieAfterItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdIsNull() {
            addCriterion("pie_before_ity_id is null");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdIsNotNull() {
            addCriterion("pie_before_ity_id is not null");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdEqualTo(Integer value) {
            addCriterion("pie_before_ity_id =", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdNotEqualTo(Integer value) {
            addCriterion("pie_before_ity_id <>", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdGreaterThan(Integer value) {
            addCriterion("pie_before_ity_id >", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pie_before_ity_id >=", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdLessThan(Integer value) {
            addCriterion("pie_before_ity_id <", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdLessThanOrEqualTo(Integer value) {
            addCriterion("pie_before_ity_id <=", value, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdIn(List<Integer> values) {
            addCriterion("pie_before_ity_id in", values, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdNotIn(List<Integer> values) {
            addCriterion("pie_before_ity_id not in", values, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdBetween(Integer value1, Integer value2) {
            addCriterion("pie_before_ity_id between", value1, value2, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieBeforeItyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pie_before_ity_id not between", value1, value2, "pieBeforeItyId");
            return (Criteria) this;
        }

        public Criteria andPieRemarkIsNull() {
            addCriterion("pie_remark is null");
            return (Criteria) this;
        }

        public Criteria andPieRemarkIsNotNull() {
            addCriterion("pie_remark is not null");
            return (Criteria) this;
        }

        public Criteria andPieRemarkEqualTo(String value) {
            addCriterion("pie_remark =", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkNotEqualTo(String value) {
            addCriterion("pie_remark <>", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkGreaterThan(String value) {
            addCriterion("pie_remark >", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("pie_remark >=", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkLessThan(String value) {
            addCriterion("pie_remark <", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkLessThanOrEqualTo(String value) {
            addCriterion("pie_remark <=", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkLike(String value) {
            addCriterion("pie_remark like", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkNotLike(String value) {
            addCriterion("pie_remark not like", value, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkIn(List<String> values) {
            addCriterion("pie_remark in", values, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkNotIn(List<String> values) {
            addCriterion("pie_remark not in", values, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkBetween(String value1, String value2) {
            addCriterion("pie_remark between", value1, value2, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieRemarkNotBetween(String value1, String value2) {
            addCriterion("pie_remark not between", value1, value2, "pieRemark");
            return (Criteria) this;
        }

        public Criteria andPieMarIdIsNull() {
            addCriterion("pie_mar_id is null");
            return (Criteria) this;
        }

        public Criteria andPieMarIdIsNotNull() {
            addCriterion("pie_mar_id is not null");
            return (Criteria) this;
        }

        public Criteria andPieMarIdEqualTo(Integer value) {
            addCriterion("pie_mar_id =", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdNotEqualTo(Integer value) {
            addCriterion("pie_mar_id <>", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdGreaterThan(Integer value) {
            addCriterion("pie_mar_id >", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pie_mar_id >=", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdLessThan(Integer value) {
            addCriterion("pie_mar_id <", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdLessThanOrEqualTo(Integer value) {
            addCriterion("pie_mar_id <=", value, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdIn(List<Integer> values) {
            addCriterion("pie_mar_id in", values, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdNotIn(List<Integer> values) {
            addCriterion("pie_mar_id not in", values, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdBetween(Integer value1, Integer value2) {
            addCriterion("pie_mar_id between", value1, value2, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPieMarIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pie_mar_id not between", value1, value2, "pieMarId");
            return (Criteria) this;
        }

        public Criteria andPiePriceIsNull() {
            addCriterion("pie_price is null");
            return (Criteria) this;
        }

        public Criteria andPiePriceIsNotNull() {
            addCriterion("pie_price is not null");
            return (Criteria) this;
        }

        public Criteria andPiePriceEqualTo(Double value) {
            addCriterion("pie_price =", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceNotEqualTo(Double value) {
            addCriterion("pie_price <>", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceGreaterThan(Double value) {
            addCriterion("pie_price >", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceGreaterThanOrEqualTo(Double value) {
            addCriterion("pie_price >=", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceLessThan(Double value) {
            addCriterion("pie_price <", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceLessThanOrEqualTo(Double value) {
            addCriterion("pie_price <=", value, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceIn(List<Double> values) {
            addCriterion("pie_price in", values, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceNotIn(List<Double> values) {
            addCriterion("pie_price not in", values, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceBetween(Double value1, Double value2) {
            addCriterion("pie_price between", value1, value2, "piePrice");
            return (Criteria) this;
        }

        public Criteria andPiePriceNotBetween(Double value1, Double value2) {
            addCriterion("pie_price not between", value1, value2, "piePrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}